package com.mybatis_puls.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小🌤
 * @since 2020-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "电话号码")
    private String phone;

    @ApiModelProperty(value = "短号")
    private Integer dphone;

    @Version
    private Integer version;
    @JsonFormat(pattern = "yyyy年/MM月/dd天|HH时:mm分:ss秒")  //自定义日期转换
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy年/MM月/dd天|HH时:mm分:ss秒")  //自定义日期转换
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField("avatarUrl")
    private String avatarUrl;

    private Integer gender;

    @ApiModelProperty(value = "余额")
    private double showFee;

    private String zfb;

}
